/*
 * taskMotor.h
 *
 *  Created on: 2025.5.27
 *      Author: TracyHenry
 */

#ifndef TASKMotor_H_
#define TASKMotor_H_
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "stm32f1xx_hal.h"
#include "cmsis_os.h"
#include "gpio.h"

// 定义一个信号量，用于防止多次触发
extern SemaphoreHandle_t triggerSemaphore;
 
// 定义任务句柄，用于管理任务
extern TaskHandle_t dynamicTaskHandle;

void taskTimerMotorControl(void * argument);
void vStopAndDeleteTask(void);

#endif /* TASKMotor_H_ */
